package com.can.service.authority;

import com.can.entity.Authority;

import java.util.List;
import java.util.Map;

/**
 * @Desription 权限表，包含各种资源
 * @Author can
 * @Date 2018/9/11
 * @Version 1.0
 */
public interface IAuthorityService {
    /**
     * 查询所有的权限资源
     * @return List<Authority> list集合
     */
    public List<Authority> selectAll();

    /**
     * 初始化权限
     * @return
     */
    public Map<String, String> loadFilterChainDefinitions();

    /**
     *  插入新的权限
     * @param authority
     * @return
     */
    public int insert(Authority authority);
}
